function max (arr) {
    var maxs = arr[0];
    for (var i=0;i<arr.length;i++){
        if(maxs<arr[i]){
            
            maxs = arr[i]
        }
    }
    return maxs
}
var arrs = [0,2,6,99,0,100];
console.log(Math.max(...arrs))//返回最大的es6方法
console.log(max(arrs))
let arr = [...'𠮷a']
console.log(...arr)
const [first, ...rest] = [1, 2, 3, 4, 5];
console.log(first,rest)